package com.gc.gpsoo.beans;

/**
 * Monitor和Tracking的返回数据
 *
 * @author 章瑱彬
 *         电话：15914921094
 *         QQ：562800930
 * @since 2015年3月31日
 */
public class GpsooCarData {


    private String imei;
    private Integer deviceInfo;//0:正常数据 1:设备未上线 2:设备已过期 3:设备离线
    private Integer deviceInfoNew;//0:正常数据 1:设备未上线 2:设备已过期 3:设备离线
    private Integer gpsTime;//定位时间 GPS定位时间 UTC秒数(如果设备过期，值为0)
    private Integer sysTime;//Gps数据的系统时间 UTC秒数(如果设备过期，值为0)
    private Integer heartTime;//心跳时间 UTC秒数(如果设备过期，值为0)
    private Integer serverTime;//当前服务器时间 UTC秒数(如果设备过期，值为0)
    private Float lng;//经度 (如果设备过期，值为0)
    private Float lat;//纬度 (如果设备过期，值为0)
    private Integer course;//航向(正北方向为0度，顺时针方向增大。最大值360度)(如果设备过期，值为0)
    private Integer speed;//速度 (单位:km/h)(如果设备过期，值为-1)
    private String acc;//ACC等信息 (如果设备过期，值为空字符串)

    public final static Integer NOMAL_DATA = 0;
    public final static Integer UNLINE = 1;
    public final static Integer OVERDATE = 2;
    public final static Integer OFFLINE = 3;

    public final String getImei() {
        return imei;
    }

    public final void setImei(String imei) {
        this.imei = imei;
    }

    public final Integer getDeviceInfo() {
        return deviceInfo;
    }

    public final void setDeviceInfo(Integer deviceInfo) {
        this.deviceInfo = deviceInfo;
    }

    public final Integer getGpsTime() {
        return gpsTime;
    }

    public final void setGpsTime(Integer gpsTime) {
        this.gpsTime = gpsTime;
    }

    public final Integer getSysTime() {
        return sysTime;
    }

    public final void setSysTime(Integer sysTime) {
        this.sysTime = sysTime;
    }

    public final Integer getHeartTime() {
        return heartTime;
    }

    public final void setHeartTime(Integer heartTime) {
        this.heartTime = heartTime;
    }

    public final Integer getServerTime() {
        return serverTime;
    }

    public final void setServerTime(Integer serverTime) {
        this.serverTime = serverTime;
    }

    public final Float getLng() {
        return lng;
    }

    public final void setLng(Float lng) {
        this.lng = lng;
    }

    public final Float getLat() {
        return lat;
    }

    public final void setLat(Float lat) {
        this.lat = lat;
    }

    public final Integer getCourse() {
        return course;
    }

    public final void setCourse(Integer course) {
        this.course = course;
    }

    public final Integer getSpeed() {
        return speed;
    }

    public final void setSpeed(Integer speed) {
        this.speed = speed;
    }

    public final String getAcc() {
        return acc;
    }

    public final void setAcc(String acc) {
        this.acc = acc;
    }

    public final Integer getDeviceInfoNew() {
        return deviceInfoNew;
    }

    public final void setDeviceInfoNew(Integer deviceInfoNew) {
        this.deviceInfoNew = deviceInfoNew;
    }

    @Override
    public String toString() {
        return "GpsooCarData [imei=" + imei + ", deviceInfo=" + deviceInfo
                + ", deviceInfoNew=" + deviceInfoNew + ", gpsTime=" + gpsTime
                + ", sysTime=" + sysTime + ", heartTime=" + heartTime
                + ", serverTime=" + serverTime + ", lng=" + lng + ", lat="
                + lat + ", course=" + course + ", speed=" + speed + ", status="
                + acc + "]";
    }
}
